﻿CREATE TABLE [dbo].[Message] (
    [Id]         INT IDENTITY (1, 1) NOT NULL,
    [ReceivedId] INT NOT NULL,
    [Message]    XML NOT NULL,
    CONSTRAINT [PK_Message] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [FK_Message_Received] FOREIGN KEY ([ReceivedId]) REFERENCES [dbo].[Received] ([Id]) ON DELETE CASCADE
);

